<?php
/**
 * 主控制程序
 * Created by Forever.
 * User: Forever
 * Date: 2018/10/03
 * Time: 上午 10:39
 */
namespace app\pay\controller;
use think\Controller;
use think\Request;
use \think\Db;
use think\Validate;
class Base extends Controller{
	protected $data = [];

    public function _initialize() {
        header("Access-Control-Allow-Origin:*");
        header('Content-Type:application/json;charset=utf8');
        header("Access-Control-Allow-Headers: Origin, X-Requested- With, Content-Type, Accept");
        $inputJSON = file_get_contents('php://input');
        $input = json_decode($inputJSON, TRUE);
        if($input){
           $this->data = $input;
        }else{
        	 return api_return(-10007);
        	 exit;
        }


    }
}
